unit SCShare;

interface

const
  VAR_21 = 0;
  VAR_22 = 20110616;

  MAX_UPFILESIZE = 1024 * 1024 * 3;

  CM_LOGIN = 100;

  CM_SENDMARK = 1000;
  CM_SENDMD5 = 1001;
  CM_SENDSETNAME = 1002;
  CM_SENDCHECKPC = 1003;
  CM_SENDBINDPC = 1004;

  CM_DOWNLOGIN = 1005;
  CM_GETDOWNLIST = 1006;
  CM_DOWNM2SERVER = 1007;
  CM_DOWNLOGINEXE = 1008;

  CM_USERLISTLOGIN = 1009;
  CM_USERGETENINFO = 1010;

  CM_NEWTOOLS_LOGIN = 1011;
  CM_TOOLS_REGLOGIN = 1012;
  CM_TOOLS_REGM2 = 1013;
  CM_TOOLS_CHANGEPASS = 1014;
  CM_TOOLS_GETBINDLIST = 1015;
  CM_TOOLS_CHANGEBINDINFO = 1016;

  CM_DOWNM2SERVER_NEW = 1017;
  CM_DOWNLOGINEXE_NEW = 1018;

  CM_GETDOWNDATA = 1019;

  CM_CHECKUPDATE = 1020;

  CM_TOOLS_GETSHAREPASS = 1021;
  CM_TOOLS_SENDMARK = 1022;
  CM_TOOLS_SENDUSERNAME = 1023;

  CM_SHARE_UPFILE = 1024;
  CM_SHARE_GETLIST = 1025;
  CM_SHARE_DOWNFILE = 1026;

  CM_EXIT_EXIT = 10009;
  CM_DOWNDB    = 20009;


  SM_GETMARK = 1000;
  SM_SETNAME_OK = 1001;
  SM_SETNAME_FAIL = 1002;
  SM_CHECKMD5_OK = 1003;
  SM_CHECKPC_FAIL = 1004;
  SM_CHECKPC_OK = 1005;
  SM_BINDPCPASS_FAIL = 1006;
  SM_BINDPCCOUNT_FAIL = 1007;
  SM_MESSAGEBOX = 1008;

  SM_DOWNLOGIN_OK = 1009;
  SM_DOWNLOGIN_FAIL = 1010;
  SM_DOWNLIST = 1011;
  SM_DOWNM2SERVER_FAIL = 1012;
  SM_DOWNM2SERVER_DATA = 1013;

  SM_DOWNLOGINEXE_FAIL = 1014;
  SM_DOWNLOGINEXE_DATA = 1015;

  SM_USERLISTLOGIN_FAIL = 1016;
  SM_USERLISTLOGIN_OK = 1017;

  SM_USERGETENINFO_OK = 1018;

  SM_NEWTOOLS_LOGIN_FAIL = 1019;
  SM_NEWTOOLS_LOGIN_OK = 1020;

  SM_TOOLS_LOGS = 1021;

  SM_TOOLS_REGLOGIN_FAIL = 1022;
  SM_TOOLS_REGLOGIN_OK = 1023;

  SM_TOOLS_REGM2_FAIL = 1024;
  SM_TOOLS_REGM2_OK = 1025;

  SM_TOOLS_CHANGEPASS_FAIL = 1026;
  SM_TOOLS_CHANGEPASS_OK = 1027;

  SM_DOWNM2SERVER_OK = 1028;
  SM_DOWNLOGINEXE_OK = 1029;

  SM_CHECKPC_NEW_OK = 1030;

  SM_DOWN_DB = 1031;

  SM_TOOLS_BINDLIST = 1032;
  SM_TOOLS_CHANGEBIND_FAIL = 1033;
  SM_TOOLS_CHANGEBIND_OK = 1034;

  SM_TOOLS_UPDATE = 1035;

  SM_DOWNM2SERVER_MAKEFILE = 1036;
  SM_DOWNLOGINEXE_MAKEFILE = 1037;

  SM_SETTOOLMARK = 1038;
  SM_TOOLS_SENDUSRNAME = 1039;

  SM_SHARE_LOGON_OK = 1040;
  SM_SHARE_UPLOADFILE_BACK = 1041;
  SM_SHARE_FILELIST = 1042;

  SM_SHARE_DOWNFILE_FAIL = 1043;
  SM_SHARE_DOWNFILE_DATA = 1044;

type
  TDownType = (dtFile, dt_m2, dt_Login);

  TDownListInfo = packed record
    sFileName: string[22];
    nFileSize: Integer;
    dwTime: TDateTime;
    DownType: TDownType;
  end;

  TUserBindInfo = packed record
    ID: Integer;
    PCName: string[16];
    IPAddres: string[18];
    CreateTime: TDateTime;
  end;

  pTLoginInfo = ^TLoginInfo;
  TLoginInfo = packed record
    boAgent: Boolean;
    nBindCount: Integer;
    nMoney: Integer;
    nAgentM2: Integer;
    nAgentLogin: Integer;
    //nResetCount: Integer;
  end;

  TNewLoginInfo = packed record
    LoginInfo: TLoginInfo;
    nResetCount: Integer;
    sPackPassword: String[8];
    nReserved: array[0..246] of Byte;
  end;

implementation

end.
